public class Test {

    public static void main(String[] args) {
        String[] ops = {"5","2","C","D","+"};
        Solution solution = new Solution();
        solution.calPoints(ops);
        System.out.println();
    }

    public static void main1(String[] args) {
        StockSpanner stockSpanner = new StockSpanner();
        System.out.print(stockSpanner.next(100)+" ");
        System.out.print(stockSpanner.next(80)+" ");
        System.out.print(stockSpanner.next(60)+" ");
        System.out.print(stockSpanner.next(70)+" ");
        System.out.print(stockSpanner.next(60)+" ");
        System.out.print(stockSpanner.next(75)+" ");
        System.out.print(stockSpanner.next(85)+" ");

    }
}
